@extends('layouts.app')

@section('content')
    <div class="policy-service-page">
        <div class="policy-service-banner">
            <img src="{{ asset('images/policy-service/banner.png') }}" alt="">
        </div>

        <div class="policy-service-content">
            <div class="policy-service-actions">
                <div class="policy-service-type-list">
                    <span>
                        <a href="{{ route('policy.index') }}" class="policy-service-type-item">政策扶持</a>
                        <a href="{{ route('policy.file') }}" class="policy-service-type-item">政策文件</a>
                        <a href="{{ route('policy.interpretation') }}" class="policy-service-type-item item-active">政策解读</a>
                    </span>
                </div>
                <div class="level">
                    <span>地域：</span>
                    <select name="level" id="level">
                        <option value="1">省级</option>
                        <option value="2">市级</option>
                        <option value="3" selected>区级</option>
                    </select>
                </div>
            </div>

            <div class="policy-service-list">
                <div>
                    @foreach ($supports as $support)
                        <div class="policy-service-item">
                            <a href="{{ route('policy.interpretation.show', [$support['id']]) }}">
                                <img src="{{ asset($support['cover']) }}" alt="" class="flex-shrink-0">
                                <div class="policy-item-info">
                                    <p>{{ $support['title'] }}</p>
                                    <p class="time">{{ $support['updated_at'] }}</p>
                                    <p class="text-sm text-gray-500">{{ $support['description'] }}</p>
                                    <p class="text-xs text-gray-400">适用范围：汉台区</p>
                                </div>
                            </a>
                        </div>
                    @endforeach
                </div>
                @if ($supports->hasPages())
                    <div class="paginate">
                        {{ $supports->links() }}
                    </div>
                @endif
            </div>
        </div>
    </div>
@stop
